using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using XFFSM;
using XFGameFramework;
using UnityEngine.SceneManagement;
public class Game_Run : FSMState
{
    private Module module;
    private LevelsController levelsController => module.LoadController<LevelsController>();
    public override void OnEnter()
    {
        base.OnEnter();
        Debug.Log("Game_Run OnEnter");

        module = userData as Module;
        if (module == null) throw new System.Exception("userData is not Module");

        levelsController.EnterLevel();
    }

    public override void OnExit()
    {
        base.OnExit();
        Debug.Log("Game_Run OnExit");
    }

}
